﻿using Microsoft.AspNetCore.Builder;

namespace ApiServer.Middelware
{
    public static class LogMiddelwareExt
    {
        /// <summary>
        /// LogMiddelware的扩展方法,将这个中间件公开给使用者
        /// </summary>
        public static IApplicationBuilder UseLogMiddelware(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<LogMiddelware>();
        }

    }
}
